[C#] Closing a MenuStrip programatically
        Posted  
        
            by Nilbert
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Nilbert
        
        
        
        Published on 2010-05-24T05:22:04Z
        Indexed on 
            2010/05/24
            5:31 UTC
        
        
        Read the original article
        Hit count: 339
        
I have a MenuStrip that I have added to a form, and in one of the dropdown menus in it, I have a text box. When I hit enter on the textbox, I want a function to run, then the drop down menu to close. I know how to get the enter part done, but I have no idea how to close the MenuStrip dropdown menu. Does anybody know how to do this?
© Stack Overflow or respective owner